package net.hn.hnms.biz.plan.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Author: PanSX
 * Date: 2022/8/5 14:37
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "dim_mining_face", schema = "public", catalog = "huaneng-smart-mine")
public class DimMiningFace extends PlanBaseModel implements Serializable {

    private static final long serialVersionUID = -7736012215289228553L;
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String miningFaceId;

    @ApiModelProperty(value = "工作面名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String miningFaceName;
    @ApiModelProperty(value = "工作面编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String miningFaceCode;
    @ApiModelProperty(value = "工作面标高（m）")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal miningFaceHigh;
    @ApiModelProperty(value = "可采走向长度（m）")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal miningFaceLength;
    @ApiModelProperty(value = "煤层倾角")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal miningFaceAngle;
    @ApiModelProperty(value = "平均煤厚（m）")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal miningFaceThick;

    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "预计结束时间")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date estimateEndDate;

    @ApiModelProperty(value = "搬家倒面至")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String relocation;


    @ApiModelProperty(value = "是否重点区域")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String isKeyArea;




}
